package com.secsys.action;

import javax.servlet.ServletRequest;

import org.apache.struts2.ServletActionContext;

import com.opensymphony.xwork2.ActionContext;
import com.secsys.dto.SysUserDTO;
import com.secsys.model.TbSysUser;

/**
 * @Description  用户退出信息关闭
 * @author Administrator
 *
 */

public class LogoutAction extends BaseAction<SysUserDTO> {

	private TbSysUser userDTO;
	
	
 
	public TbSysUser getUserDTO() {
		return userDTO;
	}




	public void setUserDTO(TbSysUser userDTO) {
		this.userDTO = userDTO;
	}




	/**
	 * @Description  退出执行
	 * @return
	 * @throws Exception
	 */
     public String execute()throws Exception{
    	 
    	 userDTO=(TbSysUser)session.get("userDto");
    	 
     
    	  if(userDTO!=null){
    		  session.remove("userDto");
    		  
    	  }
            return "index";
     }
 
	 


	@Override
	public SysUserDTO getModel() {
		// TODO Auto-generated method stub
		
		return null;
	}

}
